home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / complib / sporfs.z / sporfs
Encoding:
Text File  |  1998-10-30  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. SSSSPPPPOOOORRRRFFFFSSSS((((3333FFFF))))                                                          SSSSPPPPOOOORRRRFFFFSSSS((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SPORFS - improve the computed solution to a system of linear equations
  10.      when the coefficient matrix is symmetric positive definite,
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE SPORFS( UPLO, N, NRHS, A, LDA, AF, LDAF, B, LDB, X, LDX, FERR,
  14.                         BERR, WORK, IWORK, INFO )
  15.  
  16.          CHARACTER      UPLO
  17.  
  18.          INTEGER        INFO, LDA, LDAF, LDB, LDX, N, NRHS
  19.  
  20.          INTEGER        IWORK( * )
  21.  
  22.          REAL           A( LDA, * ), AF( LDAF, * ), B( LDB, * ), BERR( * ),
  23.                         FERR( * ), WORK( * ), X( LDX, * )
  24.  
  25. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  26.      SPORFS improves the computed solution to a system of linear equations
  27.      when the coefficient matrix is symmetric positive definite, and provides
  28.      error bounds and backward error estimates for the solution.
  29.  
  30.  
  31. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  32.      UPLO    (input) CHARACTER*1
  33.              = 'U':  Upper triangle of A is stored;
  34.              = 'L':  Lower triangle of A is stored.
  35.  
  36.      N       (input) INTEGER
  37.              The order of the matrix A.  N >= 0.
  38.  
  39.      NRHS    (input) INTEGER
  40.              The number of right hand sides, i.e., the number of columns of
  41.              the matrices B and X.  NRHS >= 0.
  42.  
  43.      A       (input) REAL array, dimension (LDA,N)
  44.              The symmetric matrix A.  If UPLO = 'U', the leading N-by-N upper
  45.              triangular part of A contains the upper triangular part of the
  46.              matrix A, and the strictly lower triangular part of A is not
  47.              referenced.  If UPLO = 'L', the leading N-by-N lower triangular
  48.              part of A contains the lower triangular part of the matrix A, and
  49.              the strictly upper triangular part of A is not referenced.
  50.  
  51.      LDA     (input) INTEGER
  52.              The leading dimension of the array A.  LDA >= max(1,N).
  53.  
  54.      AF      (input) REAL array, dimension (LDAF,N)
  55.              The triangular factor U or L from the Cholesky factorization A =
  56.              U**T*U or A = L*L**T, as computed by SPOTRF.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSPPPPOOOORRRRFFFFSSSS((((3333FFFF))))                                                          SSSSPPPPOOOORRRRFFFFSSSS((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      LDAF    (input) INTEGER
  75.              The leading dimension of the array AF.  LDAF >= max(1,N).
  76.  
  77.      B       (input) REAL array, dimension (LDB,NRHS)
  78.              The right hand side matrix B.
  79.  
  80.      LDB     (input) INTEGER
  81.              The leading dimension of the array B.  LDB >= max(1,N).
  82.  
  83.      X       (input/output) REAL array, dimension (LDX,NRHS)
  84.              On entry, the solution matrix X, as computed by SPOTRS.  On exit,
  85.              the improved solution matrix X.
  86.  
  87.      LDX     (input) INTEGER
  88.              The leading dimension of the array X.  LDX >= max(1,N).
  89.  
  90.      FERR    (output) REAL array, dimension (NRHS)
  91.              The estimated forward error bound for each solution vector X(j)
  92.              (the j-th column of the solution matrix X).  If XTRUE is the true
  93.              solution corresponding to X(j), FERR(j) is an estimated upper
  94.              bound for the magnitude of the largest element in (X(j) - XTRUE)
  95.              divided by the magnitude of the largest element in X(j).  The
  96.              estimate is as reliable as the estimate for RCOND, and is almost
  97.              always a slight overestimate of the true error.
  98.  
  99.      BERR    (output) REAL array, dimension (NRHS)
  100.              The componentwise relative backward error of each solution vector
  101.              X(j) (i.e., the smallest relative change in any element of A or B
  102.              that makes X(j) an exact solution).
  103.  
  104.      WORK    (workspace) REAL array, dimension (3*N)
  105.  
  106.      IWORK   (workspace) INTEGER array, dimension (N)
  107.  
  108.      INFO    (output) INTEGER
  109.              = 0:  successful exit
  110.              < 0:  if INFO = -i, the i-th argument had an illegal value
  111.  
  112. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  113.      ITMAX is the maximum number of steps of iterative refinement.
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.